var express = require('express');

var router = express.Router();
var dataCtrl = require('../controllers/cate.controller');



router.post('/', dataCtrl.create);//新增数据
// router.put('/:id', dataCtrl.update);
// router.delete('/:id', dataCtrl.remove);
router.post('/list', dataCtrl.list);//获取数据列表
router.get('/', dataCtrl.gets);
// router.get('/:id', dataCtrl.get);


module.exports = router;


/*


  //localhost:3000/users/123     put
  http:   //localhost:3000/users/123     delete
  http:   //localhost:3000/users/123     get
  http:   //localhost:3000/users/list
*/
